package com.htstar.ovms.device.api.feign;

import com.htstar.ovms.common.core.constant.SecurityConstants;
import com.htstar.ovms.common.core.constant.ServiceNameConstants;
import com.htstar.ovms.common.core.util.R;
import com.htstar.ovms.device.api.entity.ExportRecord;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Description:
 * Author: lw
 * Date: Created in 2020/7/16
 * Company: 航通星空
 * Modified By:
 */
@FeignClient(contextId = "ExportRecoreFeign", value = ServiceNameConstants.DEVICE_SERVICE)
public interface ExportRecoreFeign {

    @PostMapping("/exportrecord")
    Long save(@RequestBody ExportRecord exportRecord,@RequestHeader(SecurityConstants.FROM) String from);
    @PutMapping("/exportrecord")
    R updateById(@RequestBody ExportRecord exportRecord,@RequestHeader(SecurityConstants.FROM) String from);
}
